package  com.zerosky.crm.dao;

import java.util.List;
import java.util.Map;

import com.zerosky.crm.po.EarningRecord;

/**Earningrecord数据接口
 * @author hugy;
 * @since 2017-06-08
 */
public interface EarningRecordDAO {
	
	/**Earningrecord列表数据接口
	 * @author hugy;
	 * @since 2017-06-08
	 */
	public List<EarningRecord> getEarningRecordList(Map map);

	public int countEarningRecord(Map map);
	/**通过主键查找Earningrecord数据接口 
	 * @param id Earningrecord主键
	 * @author hugy;
	 * @since 2017-06-08
	 */
	public EarningRecord getEarningRecordById(String id);

	/**新增Earningrecord数据接口
	 * @param Earningrecord 实体对象
	 * @author hugy;
	 * @since 2017-06-08
	 */ 
	public int addEarningRecord(EarningRecord earningrecord) throws Exception;
	
	/**修改Earningrecord数据接口
	 * @param Earningrecord 实体对象
	 * @author hugy;
	 * @since 2017-06-08
	 */ 
	public int updateEarningRecord(EarningRecord earningrecord) throws Exception;

	/**通过主键删除Earningrecord数据接口
	 * @param id Earningrecord主键
	 * @author hugy;
	 * @since 2017-06-08
	 */ 
	public int deleteEarningRecordById(String id) throws Exception;	 
}
